package com.weiwu.weiwustore.pojo;

import com.weiwu.weiwustore.utils.DateUtil;
import lombok.Data;

import java.util.Date;

@Data
public class MaterialListVo {
    private Integer id;
    private String tname;
    private String introduce;
    private String mname;
    private String sname;
    private String quantity;
    private String price;
    private String updatetime;
    public MaterialListVo(){}
    public MaterialListVo(Integer id, String tname, String introduce, String mname, String sname,
                          String quantity, String price, Date updatetime){
        this.id=id;
        this.tname=tname;
        this.introduce=introduce;
        this.mname=mname;
        this.sname=sname;
        this.quantity=quantity;
        this.price=price;
        this.updatetime= DateUtil.getSimpleTime(updatetime);
    }
}
